package com.jiangyao.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.HashMap;

/**
 * @author lijing
 * @create 2020/8/18
 */
@Data
@ApiModel(value = "提交课程答题")
public class SubmitCourseQuestionDTO implements BaseDTO{

    @ApiModelProperty(value = "面试题id", required = true)
    @NotNull(message = "面试题id不能为空")
    private Integer questionId;

    @ApiModelProperty(value = "答题时间", required = true)
    @NotNull(message = "答题时间不能为空")
    private Date startTime;

    @ApiModelProperty(value = "提交答案", required = true)
    @NotNull(message = "提交答案不能为空")
    private HashMap<String,String> submitQuestionMap;

    @ApiModelProperty("类型 1 课件试题 2 章节试题")
    private Integer type;

    @ApiModelProperty("关联ID 课件id或章节id")
    private Integer releteId;

    @ApiModelProperty("学期课程ID")
    private Integer clsubId;


}
